INCLUDES:=./
SRCS:=$(wildcard *.cc)
LIBS:=  -lwfrest -lworkflow  -lssl -lcrypto -lcrypt
ALIBABALIBS:= -fno-rtti -lalibabacloud-oss-cpp-sdk -lcurl -lpthread
OBJS:=$(patsubst %.cc, %.o, $(SRCS))
SERVER:=server

$(SERVER): main.o hash.o token.o oss.o
	g++ $^ -o $@ $(LIBS) $(ALIBABALIBS) $(addprefix -I, $(INCLUDES)) -g

testHash: hash.o testHash.o token.o
	g++ $^ -o $@ $(LIBS)

%.o:%.cc
	g++ -c $^ -o $@ $(LIBS) $(ALIBABALIBS) $(addprefix -I, $(INCLUDES)) -g

clean:
	rm -rf $(OBJS) $(SERVER) testHash
